package com.dong.boot.controller;

import com.dong.boot.model.Menu;
import com.dong.boot.service.SystemConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/system/config")
public class SystemConfigController {
    @Autowired
    SystemConfigService systemConfigService;
    @GetMapping("/menus")
    public List<Menu> getMenusByHrId(){
        return systemConfigService.getMenusByHrId();
    }
}
